package com.example.base.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.base.excetion.GlobalExcetion;
import com.example.base.system.domain.SysRoleApi;
import com.example.base.system.domain.vo.SysRoleApiVo;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author X.I.O
 * @since 2024-04-10
 */
public interface SysRoleApiService extends IService<SysRoleApi> {

    public SysRoleApi saveSysRoleApi(SysRoleApi sysroleapi) throws GlobalExcetion;

    public SysRoleApi updateSysRoleApiById(SysRoleApi sysroleapi) throws GlobalExcetion;

    public SysRoleApi saveOrUpdateSysRoleApi(SysRoleApiVo sysroleapiVo) throws GlobalExcetion;

    public SysRoleApi getSysRoleApiByRoleIdAndApiId(String roleId,String apiId);

    public List<SysRoleApi> getSysRoleApiListByRoleId(String roleId);

    public IPage<SysRoleApi> page(Integer page, Integer pageSize) throws GlobalExcetion;

}
